package com.bit.java1;

import java.util.Arrays;

public class Test1 {

    public static void transFrome(int[] array) {
        for(int i = 0; i < array.length; i++) {
            array[i] *= 2;
        }
        System.out.println(Arrays.toString(array));
    }

    public static void main(String[] args) {
        int[] array1 = {1, 2, 3, 4, 5};
        int[] array2 = {10, 20, 30, 40, 50};
        int[] array3 = {100, 200, 300, 400, 500};
        transFrome(array1);
        transFrome(array2);
        transFrome(array3);
    }

}
